const category = {
    initRoute (router, controller) {
        // 获取所有分类
        router.get('/category', controller.getAllCategory)
        // 添加分类 批量添加
        router.post('/category', controller.createCategory)
        // 编辑一个分类
        router.post('/category/:id', controller.updateOneCategory)
        // 批量删除
        router.del('/category', controller.deleteCategory)
    },
}

module.exports = category
